<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // let fn = async () => {
      //   throw 'error';
      // };

      // console.log(fn());

      let fn2 = async () => {
        try{
          throw '出问题啦~~'
        }catch(e){
          alert('请求错误');
          throw e;
        }
      }

      console.log(fn2());
    </script>
  </body>
</html>
